
<form id="form" action="{:url('info.cate/edit')}">
<input type="hidden" name="id" value="{$info.id}"/>
<table class="formtable"> 
    <tr><th>分类名称:</th><td><input class="input" datatype="*" type="text" name="title" value="{$info.title}" /></td></tr>
    <tr><th>分类别名:</th><td><input class="input" datatype="*" type="text" name="name" value="{$info.name}" /></td></tr>
    <tr>
        <th>服务模板</th>
        <td class="input-group">
            <select class="select" name="tpl_id" datatype="n">
            <option value="0" {$!info.tpl_id?'selected':''}>默认模板</option>
            {foreach $tpl as $vo}<option value="{$vo.id}" {$vo.id == $info.tpl_id?'selected':''}>{$vo.name}</option>{/foreach}
            </select>
        </td>
    </tr>
    <tr><th>栏目排序:</th><td><input class="input" datatype="n" type="text" name="sort" value="{$info.sort}" /> <span class="gray fn-f12">数字越大越靠前</span></td>
    </tr>
    <tr>
        <th></th>
        <td>
            <input type="submit" value="确定" class="button button-blue submit" />
            <input type="reset" value="重置" class="button"/>
        </td>
    </tr>
</table>
</div>
</form>
<script type="text/javascript">
Do('base','layer','form',function(){
    $('#form').isForm();
})
</script>